<div id="main">
    <div id="primary">
        <?php if ( isset($article) ) : ?>
        <div id="content" role="main">
            <nav id="nav-single">
                <h3 class="assistive-text">Post navigation</h3>
                <span class="nav-previous">
                    <?php if ( $article['id'] > $id_min ) : ?>
                        <a href="<?php echo base_url();?>index.php/post/<?php echo ($article['id'] - 1) ?>" rel="prev"><span class="meta-nav">&larr;</span> Previous</a>
                    <?php endif; ?>
                </span>
                <span class="nav-next">
                    <?php if ( $article['id'] < $id_max ) : ?>
                        <a href="<?php echo base_url();?>index.php/post/<?php echo ($article['id'] + 1) ?>" rel="next"><span class="meta-nav">&larr;</span> Next</a>                   
                    <?php endif; ?>                    
                </span>
            </nav><!-- #nav-single -->
            <article id="post-<?php echo $article['id'] ?>" class="post-<?php echo $article['id'] ?> post type-post status-publish format-standard hentry category-<?php echo $article['category'] ?>">
                <header class="entry-header">
                    <h1 class="entry-title"><?php echo $article['title'] ?></h1>
                    <div class="entry-meta">
                        <span class="sep">Posted on </span>
                        <a href="<?php echo base_url();?>index.php/post/<?php echo ($article['id']) ?>" title="<?php echo $article['time'] ?>" rel="bookmark">
                            <time class="entry-date" datetime="<?php echo $article['fulltime'] ?>" pubdate><?php echo $article['date'] ?></time>
                        </a>
                        <span class="by-author"> 
                            <span class="sep"> by </span> 
                            <span class="author vcard">
                                <a class="url fn n" href="<?php echo base_url();?>index.php/author/<?php echo ($article['author_id']) ?>" title="View all posts by <?php echo $article['author'] ?>" rel="author"><?php echo $article['author'] ?></a>
                            </span>
                        </span>
                    </div><!-- .entry-meta -->
                </header><!-- .entry-header -->
                <div class="entry-content">
                    <p>
                        <?php echo $article['entry_content'] ?>
                    </p>
                </div><!-- .entry-content -->
                <footer class="entry-meta">
                    This entry was posted in <a href="<?php echo base_url();?>index.php/category/<?php echo $article['category_id'] ?>" title="View all posts in <?php echo $article['category']?>" rel="category"><?php echo $article['category']?></a> by <a href="<?php echo base_url();?>index.php/author/<?php echo ($article['author_id']) ?>"><?php echo $article['author']?></a>. Bookmark the <a href="<?php echo base_url();?>index.php/post/<?php echo ($article['id']) ?>" title="Permalink to <?php echo $article['title']?>!!!" rel="bookmark">permalink</a>.		
                </footer><!-- .entry-meta -->
            </article><!-- #post-4 -->
            <div id="comments">
                <h2 id="comments-title">
                    0 thoughts on &ldquo;<span>This is the second post!!!</span>&rdquo;		
                </h2>
                <ol class="commentlist">
                    <li class="comment even thread-even depth-1" id="li-comment-2">
                        <article id="comment-2" class="comment">
                            <footer class="comment-meta">
                                <div class="comment-author vcard">
                                    <img alt='' src='http://1.gravatar.com/avatar/5afcf36b24f4536dd428d27167c129ff?s=68&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D68&amp;r=G' class='avatar avatar-68 photo' height='68' width='68' /><span class="fn"><a href='http://ysys.com' rel='external nofollow' class='url'>Minh</a></span> on <a href="http://localhost/ysys/wordpress/?p=4#comment-2"><time pubdate datetime="2011-11-27T12:07:30+00:00">November 27, 2011 at 12:07 pm</time></a> <span class="says">said:</span>         
                                </div><!-- .comment-author .vcard -->
                                <em class="comment-awaiting-moderation">Your comment is awaiting moderation.</em>
                                <br />
                            </footer>
                            <div class="comment-content"><p>This is my comment</p>
                            </div>
                            <div class="reply">
                                <a class='comment-reply-link' href='/ysys/wordpress/?p=4&#038;replytocom=2#respond' onclick='return addComment.moveForm("comment-2", "2", "respond", "4")'>Reply <span>&darr;</span></a>			
                            </div><!-- .reply -->
                        </article><!-- #comment-## -->
                    </li>
                </ol>
                
                <div id="respond">
                    <h3 id="reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="<?php echo base_url();?>index.php/post/<?php echo ($article['id']) ?>#respond" style="display:none;">Cancel reply</a></small></h3>

                    <form action="<?php echo base_url();?>index.php/post/comments-post/<?php echo ($article['id']) ?>" method="post" id="commentform">
                        <p class="comment-notes">Your email address will not be published. Required fields are marked <span class="required">*</span></p>							
                        <p class="comment-form-author"><label for="author">Name</label> <span class="required">*</span><input id="author" name="author" type="text" value="" size="30" aria-required='true' /></p>
                        <p class="comment-form-email"><label for="email">Email</label> <span class="required">*</span><input id="email" name="email" type="text" value="" size="30" aria-required='true' /></p>
                        <p class="comment-form-url"><label for="url">Website</label><input id="url" name="url" type="text" value="" size="30" /></p>
                        <p class="comment-form-comment"><label for="comment">Comment</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>						<p class="form-allowed-tags">You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:  <code>&lt;a href=&quot;&quot; title=&quot;&quot;&gt; &lt;abbr title=&quot;&quot;&gt; &lt;acronym title=&quot;&quot;&gt; &lt;b&gt; &lt;blockquote cite=&quot;&quot;&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=&quot;&quot;&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=&quot;&quot;&gt; &lt;strike&gt; &lt;strong&gt; </code></p>						<p class="form-submit">

                            <input name="submit" type="submit" id="submit" value="Post Comment" />
                            <input type='hidden' name='comment_post_ID' value='<?php echo ($article['id']) ?>' id='comment_post_ID' />
                            <input type='hidden' name='comment_parent' id='comment_parent' value='<?php echo ($article['parent_id']) ?>' />
                        </p>
                    </form>
                </div><!-- #respond -->
            </div><!-- #comments -->
        </div><!-- #content -->
        <?php endif; ?>
    </div><!-- #primary -->
    <?php $this->load->view('includes/sidebar');?>
</div><!-- #main -->
            
            